package com.hafiery.sdk.bluetooth;

import android.bluetooth.BluetoothDevice;
import com.hafiery.sdk.bluetooth.transport.constant.ErrorCode;

public interface IBlueToothActionListener {

    /**
     * begin to start
     */
    void onStartScan();
    /** notify the result of search devices
     * @param device
     * @param rssi
     */
    void onScanResult(BluetoothDevice device,int rssi);

    /**
     * the search devices is finished
     */
    void onStopScan();

    /** notify the status from gatt
     */
    void onShakeHandsSuccess();
    void onShakeHandsFailed(ErrorCode errorCode);
    /** notify the status from gatt
     */
    void onGattConnectStart(BluetoothDevice device);
    void onGattConnected(BluetoothDevice device);
    void onGattConnectError(int status);
    void onGattConnectDisconnect();

    void onBlueToothOpenOrCloseStatusChanged(boolean open);
}
